import {request} from "../utils/request"

// 课程分类
export function getMenu() {
  return request({
    url: '/weChat/applet/subject/list',
    method: 'POST',
    data:{
        "enable": "1"
    }
  })
}
// 具体课程

export function getCoursesBySubjectId(subjectId, pageNum = 1, pageSize = 15) {
  return request({
    url: `/pc/course/search/keyword?subjectId=${subjectId}&pageNum=${pageNum}&pageSize=${pageSize}&keyword=`,
    method: 'GET',
  });
}

